using Newtonsoft.Json;
using System;
using XUCore.WeChat.Apis;

namespace XUCore.WeChat.Enterprise.Apis.Token
{
    public class EnterpriseTokenApiResult : ApiResultBase
    {
        /// <summary>
        ///     获取到的凭证
        /// </summary>
        [JsonProperty("access_token")]
        public string access_token { get; set; }

        /// <summary>
        ///     凭证有效时间，单位：秒
        /// </summary>
        [JsonProperty("expires_in")]
        internal int expires_in { get; set; }

        /// <summary>
        ///     凭证过期时间
        /// </summary>
        public DateTime expires_time { get; set; }
    }
}